﻿
    using Chain.BLL;
    using Chain.Model;
//    using ChainStock.Controls;
    using System;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
using Chain.IDAL;

    public partial class GiftExchange : PageBase
    {
        private Chain.BLL.PointExchange bllPe = new Chain.BLL.PointExchange();
        private Chain.BLL.PointGift bllPg = new Chain.BLL.PointGift();

        private Chain.Model.PointGift modelPg = new Chain.Model.PointGift();


        protected void Page_Load(object sender, EventArgs e)
        {
            if (!base.IsPostBack)
            {
                this.lblExchangeTime.InnerText = DateTime.Now.ToString();
                this.lblExchangeUSer.InnerText = PubFunction.UserIDTOName(base._UserID);
                this.lblExchangePrefix.InnerText = PubFunction.curParameter.strGiftExchangePrefix + DateTime.Now.ToString("yyMMddHHmmssffff");
                PubFunction.Get_PrintTitle(ref this.lblPrintTitle, ref this.lblPrintFoot, base._UserShopID);
                this.chkIsSMS.Checked = PubFunction.curParameter.bolSms;
                this.chkSMS.Checked = PubFunction.curParameter.bolMoneySms && base.curParameter.bolAutoSendSMSByMemGiftExchange;
                this.lblIsSMS.Style.Add("display", (PubFunction.curParameter.bolMoneySms && base.curParameter.bolAutoSendSMSByMemGiftExchange) ? "\"\"" : "none");
                this.chkPrint.Checked = PubFunction.curParameter.bolAutoPrint;
                if (base.Request.QueryString["MemCard"] != null)
                {
                    this.MemCard.Value = base.Request.QueryString["MemCard"];
                }
                this.ucMemberSearch.BolSenseICCard = base.curParameter.bolSenseiccard;
                this.ucMemberSearch.BolContactICCard = base.curParameter.bolContacticcard;
                this.PointNum.Value = PubFunction.GetPointNum("JFDH");
            }
        }
    }


